﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class IssuerMap : ClassMap<Issuer>
    {
        public IssuerMap()
        {
            Table("ISSUER");
            Id(x => x.IssuerId, "ISSUER_ID").GeneratedBy.Identity();
            Map(x => x.IssuerName, "ISSUER_NAME");
            Map(x => x.IssuerCode, "ISSUER_CODE");
            Map(x => x.IssuerType, "ISSUER_TYPE");

        }
    }
}
